package com.peas.platform.module.icims.contract.basal.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("合同资金来源")
public class ContractFundsourceVo extends BaseVo {

    @Comment(value = "合同资金来源编码")
    @ApiModelProperty(value = "合同资金来源编码")
    @Size(max = 20, message = "合同资金来源编码不能超过20个字符")
    private String code;

    @Comment(value = "合同资金来源名称")
    @ApiModelProperty(value = "合同资金来源名称")
    @NotBlank(message = "合同资金来源名称不能为空")
    @Size(max = 200, message = "合同资金来源名称不能超过200个字符")
    private String name;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

}
